package com.example.seckill.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.seckill.VO.TokenResponse;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Data;
import org.springframework.boot.jdbc.DataSourceBuilder;

import javax.sql.DataSource;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;


@Data
@TableName("user")
public class User {
    private Long id;
    private String username;
    private String password;
    private String name;
    private Integer gender;
    private String salt;
    private Date created_time;
    private Date updated_time;
    @TableField(exist = false)
    private Set<Permission> permissions;
    @TableField(exist = false)
    private List<Integer> roles;



}

